

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Move Components [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Move,Move Elements, Quick Start,Move Diagrams, Quick Start,Move Packages, Quick Start,Move Connectors, Quick Start,Quick Start,Quick Start Move Project Components,Sort Order,Sort Order Project Browser, Reset,Reset Sort Order,Reset Sort Order In Project Browser,Element,Element Move, Impact Of Diagram,Diagram,Diagram Move, Impact On Elements,Connector,Connector Move,Package,Package Move">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Move Components</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="quick_start___define_propertie.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="delete_components_.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">You have created a project containing packages, diagrams and elements, and you have connected the elements. You might have arranged your components in the wrong project structure. How do you change where things are?</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="952" bgcolor="#efeff7" style="width:952px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="952" bgcolor="#f7f7ff" style="width:952px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">Changing <a href="quick_start___define_propertie.htm">names and properties</a> is discussed a little later.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_BodyText"><span class="f_BodyText">In this topic, the explanations refer to the following example:</span></p>
<p class="p_TextIndentedL2"><img src="movedelexample.png" width="586" height="244" border="0" alt="MoveDelExample"></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="952" bgcolor="#efeff7" style="width:952px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Notes:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="952" bgcolor="#f7f7ff" style="width:952px; background-color:#f7f7ff;"><ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">You display and work on your model in the </span><span class="f_UIControl">Project Browser</span><span class="f_TiporNoteText">, and display and work on a diagram in the </span><span class="f_UIControl">Diagram View</span><span class="f_TiporNoteText">.</span></li>
<li><span class="f_TiporNoteText">In the </span><span class="f_UIControl">Project Browser</span><span class="f_TiporNoteText">, the contents of a package are listed in the order </span><span class="f_TiporNoteText" style="font-style: italic;">diagrams | child packages | elements</span><span class="f_TiporNoteText">. Elements are further arranged in type order. Within their types, components are initially listed in alphabetical or numerical order.</span></li>
<li><span class="f_TiporNoteText">Moving an element or package has no effect on any relationships that the element, package, or elements within the package have. You have to specifically create, delete or move the relationships themselves.</span></li>
</ul>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Move Components Within a Package in the Project Browser</span></p>
<p class="p_BodyText"><span class="f_BodyText">To move a diagram, child package or element within its parent package, click on it in the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText"> and click on </span><img src="pbuparrow.png" width="25" height="26" border="0" alt="PBUparrow"><span class="f_BodyText"> or </span><img src="pbdownarrow.png" width="24" height="25" border="0" alt="PBDownarrow"><span class="f_BodyText"> in the toolbar at the top of the window.</span></p>
<p class="p_BodyText"><span class="f_BodyText">You could move </span><span class="f_BodyText" style="font-style: italic;">Class3</span><span class="f_BodyText"> in the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText"> above </span><span class="f_BodyText" style="font-style: italic;">Class1</span><span class="f_BodyText">, or move the </span><span class="f_BodyText" style="font-style: italic;">Actors</span><span class="f_BodyText"> package underneath </span><span class="f_BodyText" style="font-style: italic;">Classes A</span><span class="f_BodyText">.</span></p>
<p class="p_BodyText"><span class="f_BodyText">To revert to listing components in alphabetical order, right-click on the package and select the </span><span class="f_MenuKeyField">Contents | Reset Sort Order</span><span class="f_BodyText"> menu option.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Move Components Between Packages in the Project Browser</span></p>
<p class="p_BodyText"><span class="f_BodyText">You might have created a diagram, child package or element in the wrong place in the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText">. To move a model component to another package, click on the component and drag it to the new package. This can be at either a higher level or a lower level.</span></p>
<p class="p_BodyText"><span class="f_BodyText">You might, for example, drag </span><span class="f_BodyText" style="font-style: italic;">Class1</span><span class="f_BodyText"> from the </span><span class="f_BodyText" style="font-style: italic;">Use Case Model</span><span class="f_BodyText"> package into the </span><span class="f_BodyText" style="font-style: italic;">Business Process Model</span><span class="f_BodyText"> package. </span><span class="f_BodyText" style="font-style: italic;">Class1</span><span class="f_BodyText"> then is listed in the </span><span class="f_BodyText" style="font-style: italic;">Business Process Model</span><span class="f_BodyText"> package in the </span><span class="f_UIControl">Project Browser. </span><span class="f_BodyText">As a similar example, you could drag </span><span class="f_BodyText" style="font-style: italic;">Class Diagram</span><span class="f_BodyText"> into the </span><span class="f_BodyText" style="font-style: italic;">Business Process Model</span><span class="f_BodyText"> package.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Moving elements in the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText"> does not affect the use of elements in diagrams. In our example, </span><span class="f_BodyText" style="font-style: italic;">Class1</span><span class="f_BodyText"> is initially in a diagram in the </span><span class="f_BodyText" style="font-style: italic;">Use Case Model</span><span class="f_BodyText"> package. When you move </span><span class="f_BodyText" style="font-style: italic;">Class1</span><span class="f_BodyText"> in the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText"> from </span><span class="f_BodyText" style="font-style: italic;">Use Case Model</span><span class="f_BodyText"> to </span><span class="f_BodyText" style="font-style: italic;">Business Process Model</span><span class="f_BodyText">, it still shows in the diagram in </span><span class="f_BodyText" style="font-style: italic;">Use Case Model</span><span class="f_BodyText">, and does not display in any diagram in </span><span class="f_BodyText" style="font-style: italic;">Business Process Model</span><span class="f_BodyText">.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="952" bgcolor="#efeff7" style="width:952px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="952" bgcolor="#f7f7ff" style="width:952px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">Moving a diagram generally does not affect the location of elements in packages. If you move the </span><span class="f_TiporNoteText" style="font-style: italic;">Class Diagram</span><span class="f_TiporNoteText"> out of </span><span class="f_TiporNoteText" style="font-style: italic;">Use Case Model</span><span class="f_TiporNoteText"> into </span><span class="f_TiporNoteText" style="font-style: italic;">Business Process Model</span><span class="f_TiporNoteText">, all the elements in the diagram remain in the </span><span class="f_TiporNoteText" style="font-style: italic;">Use Case Model</span><span class="f_TiporNoteText"> package.</span></p>
<p class="p_TiporNoteText"><span class="f_TiporNoteText">However, elements of certain types might be used only within one diagram, have no meaning outside that diagram, and never be re-used in any other diagram. Such elements include <a href="decision.htm">Decision</a>, <a href="initial.htm">Initial</a> and <a href="final.htm">Final Node</a> elements. Therefore, if you move a diagram containing these elements, they </span><span class="f_TiporNoteText" style="font-weight: bold;">are</span><span class="f_TiporNoteText"> moved to the new parent package with the diagram.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_BodyText"><span class="f_BodyText">To remove </span><span class="f_BodyText" style="font-style: italic;">Class1</span><span class="f_BodyText"> from the </span><span class="f_BodyText" style="font-style: italic;">Use Case Model </span><span class="f_BodyText">diagram, click on it on the diagram and <a href="delete_components_.htm">delete</a> it. Nothing happens to the element in the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText">. To put </span><span class="f_BodyText" style="font-style: italic;">Class1</span><span class="f_BodyText"> into a diagram in the </span><span class="f_BodyText" style="font-style: italic;">Business Process Model </span><span class="f_BodyText">package, open the diagram in that package and drag the element from the </span><span class="f_BodyText" style="font-style: italic;">Business Process Model </span><span class="f_BodyText">package in the </span><span class="f_UIControl">Project Browser </span><span class="f_BodyText">onto the diagram.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Move Elements in a Diagram</span></p>
<p class="p_BodyText"><span class="f_BodyText">If an element is not in the right position in the diagram, just click on the middle of it and drag it to the correct place. In the diagram above, you might move </span><span class="f_BodyText" style="font-style: italic;">Class2</span><span class="f_BodyText"> below </span><span class="f_BodyText" style="font-style: italic;">Class 3</span><span class="f_BodyText">, and move </span><span class="f_BodyText" style="font-style: italic;">Class3</span><span class="f_BodyText"> to the left. The element brings its connectors with it. </span></p>
<p class="p_BodyText"><span class="f_BodyText">To make fine adjustments, press </span><span class="f_MenuKeyField">[Shift]+[</span><span class="f_MenuKeyField" style="font-family: 'Wingdings 3';">&quot;</span><span class="f_MenuKeyField">]</span><span class="f_NumberedList">,</span><span class="f_MenuKeyField"> [</span><span class="f_MenuKeyField" style="font-family: 'Wingdings 3';">!</span><span class="f_MenuKeyField">]</span><span class="f_NumberedList">,</span><span class="f_MenuKeyField"> [</span><span class="f_MenuKeyField" style="font-family: 'Wingdings 3';">#</span><span class="f_MenuKeyField">]</span><span class="f_NumberedList"> or</span><span class="f_MenuKeyField"> [</span><span class="f_MenuKeyField" style="font-family: 'Wingdings 3';">$</span><span class="f_MenuKeyField">].</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Move Connectors in a Diagram</span></p>
<p class="p_BodyText"><span class="f_BodyText">You might have connected the wrong pair of elements. To move the end of a connector to a different element (for example, </span><span class="f_BodyText" style="font-style: italic;">Class2</span><span class="f_BodyText"> instead of </span><span class="f_BodyText" style="font-style: italic;">Class3</span><span class="f_BodyText">), click on the end to display a black 'handle' box and drag the end to its new position. Be aware that the connector does not break from the original target element until the cursor is on the new target.</span></p>
<p class="p_BodyText"><span class="f_BodyText">You can also tidy up a connection by dragging the end of the connector to a better position on the edge of the element, or move both ends at once by dragging the middle of the connector.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Additional Information</span></p>
<p class="p_BodyText"><span class="f_BodyText">See the topics on <a href="delete_components_.htm">Deleting Components</a> and <a href="save_changes.htm">Saving Changes</a>.</span></p>
<p class="p_BodyText"><span class="f_BodyText">For additional information on moving connectors and elements, see the </span><span class="f_BodyText" style="font-style: italic;"><a href="arrangingconnections.htm">Arrange Connectors</a></span><span class="f_BodyText"> topic and the </span><span class="f_BodyText" style="font-style: italic;"><a href="orderpackagecontents.htm">Order Package Contents</a> </span><span class="f_BodyText">topic.</span></p>




            </div>
          </div>
        </div>



</div>


</body>
</html>
